package com.cheer.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * 活动签到param
 */
@Data
@ApiModel(description = "签到参数")
@ToString
public class ActivityCheckinParam {

    /**
     * 活动ID
     */
    @ApiModelProperty("活动ID")
    private Integer id;
    /**
     * 经度
     */
    @ApiModelProperty("纬度")
    private String locationLatitude;
    /**
     * 纬度
     */
    @ApiModelProperty("经度")
    private String locationLongitude;

    /**
     * 纬度 + 经度
     * @return
     */
    public String getFromLocation(){
        return locationLatitude + "," + locationLongitude;
    }

}
